package com.zbkj.crmeb.supplier.dao;

import java.util.List;

import com.zbkj.crmeb.store.model.CustomsRecord;
import com.zbkj.crmeb.store.request.CustomsRecordSearchRequest;
import com.zbkj.crmeb.store.request.SupplierOpenShopProductRequest;
import com.zbkj.crmeb.store.response.SupplierOpenShopProductResponse;
import com.zbkj.crmeb.supplier.model.SupplierOpenShopProduct;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

/**
 * 供应商一键开店中的商品表
 * 
 * @author lss
 * @email didiok@foxmail.com
 * @date 2024-11-18 17:36:49
 */
@Mapper
public interface SupplierOpenShopProductDao extends BaseMapper<SupplierOpenShopProduct> {

    /**
     * 商品备案表
     * @param request
     * @return
     */
    List<SupplierOpenShopProductResponse> queryList(SupplierOpenShopProductRequest request);

    /**
     * 删除原来绑定的商品
     * @param id
     */
    Boolean deleteByShopId(Integer shopId);

    /**
     * 逻辑删除原来绑定的商品
     * @param id
     */
    Boolean updateDelByShopId(Integer shopId);
}
